package timer

import (
	"time"
)

// Author: Wjy
// 获取时间
func GetNowTime() time.Time{
	return time.Now()
}
// 推算时间
func GetCalculateTime(currentTimer time.Time, d string) (time.Time, error){
	duration, err := time.ParseDuration(d)
	if err != nil{
		return time.Time{}, err
	}
	return currentTimer.Add(duration), nil
}